<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vueJS/vue.js"></script>
</head>
<body>
    <ol>
        <!-- 创建一个 todo-item 组件的实例 -->
        <todo-item></todo-item>
      </ol>
</body>
</html>
<script type="text/javascript">
    Vue.component('todo-item',{
        template:'<li>这个是待办事项</li>'
    })
</script>